package gps.monitor.gpsbootstrap.gpstraceanalyse;

import gps.monitor.common.core.base.AbstractBootstrap;
import gps.monitor.gpstraceanalyse.configuration.EnableTraceAnalyseService;
import gps.monitor.gpstraceanalyse.starter.GpsTraceAnalyseStarter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author cyq
 * @date 2021/11/4
 * @desc talk is cheep,show me the code
 */
@EnableTraceAnalyseService
@SpringBootApplication
public class TraceAnalyserBootstrap extends AbstractBootstrap {

    @Autowired(required = false)
    private GpsTraceAnalyseStarter gpsTraceAnalyseStarter;

    @Override
    public void loadCustomConfig() {

    }

    @Override
    public boolean startService() {
        gpsTraceAnalyseStarter.start();
        return false;
    }
}
